package com.linked.mystyle.food.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("mystyle_food_info")
public class FoodInfoPO {


    @TableId(value = "food_id", type = IdType.ASSIGN_UUID)
    private String foodId;

    @TableField("food_name")
    private String foodName;

    @TableField("restaurant")
    private String restaurant;

    @TableField("food_price")
    private Double foodPrice;

    @TableField("food_type")
    private String foodType;

    @TableField("last_eat")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lastEat;

    @TableField("food_addr_id")
    private String foodAddrId;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableField("data_status")
    private Integer dataStatus;




}
